<!DOCTYPE html>
<!--[if IE 9]> <html lang="en" class="ie9"> <![endif]-->
<!--[if !IE]><!-->
<html lang="en">
<!--<![endif]-->
	<head>
		<?php $this->load->view($cfg['tpl'].'public/meta')?>
		<style>.list-item{margin-bottom:40px;}</style>
	</head>

	<!-- body classes: 
			"boxed": boxed layout mode e.g. <body class="boxed">
			"pattern-1 ... pattern-9": background patterns for boxed layout mode e.g. <body class="boxed pattern-1"> 
	-->
	<body>
		<!-- scrollToTop -->
		<!-- ================ -->
		<div class="scrollToTop"><i class="icon-up-open-big"></i></div>

		<!-- page wrapper start -->
		<!-- ================ -->
		<div class="page-wrapper">

			<?php $this->load->view($cfg['tpl'].'public/header')?>
			
			<!-- banner start -->
			<!-- ================ -->
			<div class="banner">
				<!-- slideshow start -->
				<!-- ================ -->
				<div class="slideshow">
					
					<!-- slider revolution start -->
					<!-- ================ -->
					<div class="slider-banner-container">
						<div class="slider-banner">
							<ul>
								<?php foreach ($ad_pic as $k => $v) {?>
								<li>
								<img src="<?php echo base_url($v['imgthumb'])?>"  alt="<?=(!empty($v['title'])? $v['title'] : "") ?>" >
								</li>
								<?php }?>
							</ul>
							<div class="tp-bannertimer tp-bottom"></div>
						</div>
					</div>
					<!-- slider revolution end -->

				</div>
				<!-- slideshow end -->

			</div>
			<!-- banner end -->

			<!-- main-container start -->
			<!-- ================ -->
			<section class="main-container">

				<div class="container">
					<div class="row">
						<!-- sidebar start -->
						<aside class="col-md-3">
							<div class="sidebar">
								<div class="block clearfix">
									<h3 class="title"><?php if ($flag == 'article'){?>Sort<?php } else {?>案例<?php }?></h3>
									<div class="separator"></div>
									<nav>
										<ul class="nav nav-pills nav-stacked">
											<?php foreach ($articlecate as $k => $v) {?>
											<li <?php if ($v['cateid'] == $cateid){?>class="active"<?php }?>><a href="<?php echo site_url('article/index/'.$v['cateid'])?>"><?php echo $v['catename']?></a></li>
											<?php }?>
										</ul>
									</nav>
								</div>
							</div>
						</aside>
						<!-- sidebar end -->
						<!-- main start -->
						<!-- ================ -->
						<div class="main col-md-8 col-md-offset-1">

							<!-- page-title start -->
							<!-- ================ -->
							<h1 class="page-title"><?php if ($flag == 'article'){?>Information Center<?php } else {?>客户案例<?php }?></h1>
							<div class="separator-2"></div>
							<!-- page-title end -->
							<?php foreach ($article as $k => $v) {?>
							<div class="list-item">
								<div class="row">
									<div class="col-sm-6 col-md-4">
										<div class="overlay-container">
											<?php if(!empty($v['sourceimage'])){?><img src="<?=base_url($v['sourceimage'])?>" alt=""><?php }?>
											<div>
												<div class="overlay-links">
													<a href="<?php echo site_url('article/detail/'.$v['articleid'])?>"><i class="fa fa-link"></i></a>
													<!--<a href="images/portfolio-1.jpg" class="popup-img"><i class="fa fa-search-plus"></i></a>-->
												</div>
												<!--<span>Web Design</span>-->
											</div>
										</div>
									</div>
									<div class="col-sm-6 col-md-8">
										<div class="body">
											<h3 class="title"><a href="<?php echo site_url('article/detail/'.$v['articleid'])?>"><?php echo $v['title']?></a></h3>
											<p class="small mb-10"><i class="icon-calendar"></i> <?=date("Y-m-d",$v['ctime'])?> <!--<i class="pl-10 fa fa-tags"></i> Web Design--></p>
											<p class="mb-10"><?php echo $v['desc']?></p>
											<a href="<?php echo site_url('article/detail/'.$v['articleid'])?>" class="btn radius btn-warning ">Read More</a>
										</div>
									</div>
								</div>
							</div>
							<?php }?>
							<!-- pagination start -->
							<ul class="pagination">
								<?=$page?>
							</ul>
							<!-- pagination end -->

						</div>
						<!-- main end -->

					</div>
				</div>
			</section>
			<!-- main-container end -->

			<?php $this->load->view($cfg['tpl'].'public/footer')?>

		</div>
		<!-- page-wrapper end -->
		<script>
		function gopage(num, total){
			$('#pagecur').val(num);
			$('#pagecount').val(total);
			if ((($("#pagecur").val() != '') && ($("#pagecount").val() != '')) && ((num != undefined) && (total != undefined)))
			{
				$('#formpage').attr('action',$("#action").val());
				$('#formpage').submit();
			}
			else
			{
				window.location.reload();
			}
		}
		</script>
	</body>
</html>
